<?php
/**
 * @name SoftRank Plugin Center for Discuz! 7.2.0 GBK
 * @copyright 2008-2009 SoftRank Research Center
 * @author http://www.softrank.net
 * @version 1.0.0.0
 */

//This is the runtime file of SoftRank Plugin Center. It should always be included.
//Code can only be run under Discuz!.

//region IN_DISCUZ verify
if (!defined('IN_DISCUZ'))
{
    exit('Access Denied');
}
//end region IN_DISCUZ verify

/*
Database related
*/
$ptablepre = $tablepre . 'sr_';
//Set ptablepre.

define(PLUGIN_DIR, DISCUZ_ROOT . './plugins/sr_plugincenter/');
//Define PLUGIN_DIR as the directory of SoftRank Plugin Center.
define(IN_SR, TRUE);
//Define IN_SR to prevent user from calling files directly.

include language('sr_plugincenter');
$lang = $language;
//Include the language file.

require DISCUZ_ROOT . './forumdata/cache/plugin_sr_usercenter.php';
//Require the cache file for the plugin.
require DISCUZ_ROOT . './forumdata/cache/cache_settings.php';
//Require the cache file for forum data.
require PLUGIN_DIR . './include/version.inc.php';
//Read the current version of the plugin.
require PLUGIN_DIR . './include/global.func.php';
//Require global functions for the plugins.
require PLUGIN_DIR . './include/user.class.php';
$p_user = new User($db, $ptablepre);
//Require plugin user class.
require PLUGIN_DIR . './include/plugincenter.class.php';
$p_center = new PluginCenter($db, $ptablepre);
//Require plugin center class.

$navDevider = '&raquo;&nbsp;';
//A symbol of navigator devider between menu items.
$htmlNewLine = '<br />' . "\n";
//To insert a new line in html code.
$copyrightUrl = 'http://www.softrank.net';
$pluginUrl = 'plugin.php?identifier=sr_plugincenter';

?>